/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package shufasheji;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
/**
 *
 * @author houfukude
 */
public class p33_3_16_17_18_19 {

    public static void main(String[] args){
        try{
            System.out.println("A.1_16,设计一个函数,在数组的第i个下标前插入一个元素,并保持数组元素的连续性.");
        System.out.println("B.1_17,设计一个函数,删除数组第i个下标的数据元素,并保持数组元素的连续性.");
        System.out.println("C.1_18,设计一个函数,交换两个变量的值.");
        System.out.println("D.1_19,设计一个函数,交换两个数组元素的值.");
        System.out.println("choose a problem... ");
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                char choice = br.readLine().charAt(0);
                 switch (choice) {
                    case 1:{
                        A1_16();

                    break;
                    }
                    case 2:{
                        A1_17();

                    break;
                    }
                    case 3:{
                        A1_18();;

                    break;
                    }
                    case 4:{
                        A1_19();
                        break;
                    }
                    default: inputError();
                        //选择错误
                }

        } catch (IOException ex1) {
        } catch (NumberFormatException ex2){//如果无法强制转化成INt说明输入错误
            inputError();
        }
        
    }

    private static void inputError() {

    }

    public static void A1_16(){

    }
    public static void A1_17(){

    }
    public static void A1_18(){

    }
    public static void A1_19(){

    }
}
